<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:p="http://primefaces.prime.com.tr/ui"
       xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="./Test.xhtml">


            <ui:define name="content">


                <fieldset style="height: 800px">
                    <legend><b>Update Account </b></legend>


                    <table width="457" height="190" border="0">
                        <tr>

                            <td><b>Account Id* </b></td>
                            <td><p:inputText value="#{accountBean.ac.accountId}" disabled="true"/></td>

                        </tr>
                        <tr>

                            <td><b>Account Name *</b></td>
                            <td><p:inputText value="#{accountBean.ac.accountName}" id="txtAccName" required="true" requiredMessage="Account Name is not null">
                                    <f:validator validatorId="Validator.StringValidator"/>
                                </p:inputText>
                            </td>
                            <td><p:message for="txtAccName"/></td>
                        </tr>
                        <tr>
                            <td><b>Amount * </b></td>
                            <td><p:inputText value="#{accountBean.ac.amount}" id="txtamount" required="true" requiredMessage="Amount is not null">
                                    <f:validator validatorId="Validator.CheckNumber"/>
                                </p:inputText>
                            </td>
                            <td><p:message for="txtamount"/></td>
                        </tr>
                        <tr>
                            <td><b>Email * </b></td>
                            <td><p:inputText value="#{accountBean.ac.customer.email}" disabled="true"/></td>
                            <td><p:message for="txtamount"/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <h:commandButton value="Update" action="Account" actionListener="#{accountBean.updateAccount}" type="image" image="../resources/images/forms/form_submit.gif"/>

                                <h:commandButton  action="Account" type="reset" image="../resources/images/forms/form_reset.gif"/>
                            </td>
                            <td></td>
                        </tr>
                    </table>

                </fieldset>




            </ui:define>



        </ui:composition>

    </body>
</html>
